package com.kuang.esapi.mapper;

import com.kuang.esapi.entity.InternalMessage;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @Description
 * @Author ChenXi
 * @Date 2023/01/10/18:12
 */
 

public interface InternalMessageMapper {
    /**
     * delete by primary key
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(InternalMessage record);

    /**
     * select by primary key
     * @param id primary key
     * @return object by primary key
     */
    InternalMessage selectByPrimaryKey(Long id);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(InternalMessage record);

    int updateBatch(List<InternalMessage> list);

    int batchInsert(@Param("list") List<InternalMessage> list);
}